/* deepseek-theme.css */
:root {
  --deepseek-bg: #f9fafb;
  --deepseek-chat-bg: #ffffff;
  --deepseek-primary: #2970ff;
  --deepseek-text: #1f2937;
  --deepseek-secondary-text: #6b7280;
  --deepseek-border: #e5e7eb;
  --deepseek-hover: #f3f4f6;
  --deepseek-sidebar-bg: #ffffff;
  --deepseek-message-user-bg: #f3f4f6;
  --deepseek-message-ai-bg: #ffffff;
}

/* 全局容器样式 */
.deepseek-container {
  display: flex;
  height: 100vh;
  background-color: var(--deepseek-bg);
  color: var(--deepseek-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 侧边栏样式 */
.deepseek-sidebar {
  width: 260px;
  background-color: var(--deepseek-sidebar-bg);
  border-right: 1px solid var(--deepseek-border);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.deepseek-new-chat {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background-color: var(--deepseek-primary);
  color: white;
  border-radius: 6px;
  margin-bottom: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

/* 主聊天区域 */
.deepseek-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--deepseek-chat-bg);
  overflow: hidden;
}

.deepseek-chat-header {
  padding: 16px;
  border-bottom: 1px solid var(--deepseek-border);
  font-weight: 600;
}

.deepseek-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

/* 消息样式 */
.deepseek-message {
  max-width: 85%;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}

.deepseek-message-user {
  align-self: flex-end;
  background-color: var(--deepseek-message-user-bg);
  border-radius: 12px 12px 0 12px;
  padding: 12px 16px;
}

.deepseek-message-ai {
  align-self: flex-start;
  background-color: var(--deepseek-message-ai-bg);
  border: 1px solid var(--deepseek-border);
  border-radius: 0 12px 12px 12px;
  padding: 12px 16px;
}

/* 输入区域 - 确保可见且位于底部 */
.deepseek-input-area {
  padding: 16px;
  border-top: 1px solid var(--deepseek-border);
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--deepseek-chat-bg);
  z-index: 10;
}

.deepseek-input-container {
  position: relative;
  border: 1px solid var(--deepseek-border);
  border-radius: 8px;
  background-color: #ffffff;
}

.deepseek-textarea {
  width: 100%;
  min-height: 48px;
  max-height: 150px;
  padding: 12px 16px;
  padding-right: 60px; /* 为发送按钮留出空间 */
  resize: none;
  border: none;
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  overflow-y: auto;
}

.deepseek-send-button {
  position: absolute;
  bottom: 0px;
  right: 8px;
  background-color: var(--deepseek-primary);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
}

.deepseek-send-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

/* 简洁模式适配 */
.deepseek-minimal .deepseek-sidebar {
  width: 220px;
}

.deepseek-minimal .deepseek-message {
  max-width: 90%;
}